package com.ls.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ls.blog.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2021-09-20
 */
@Repository
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 获得用户角色信息
     * @param userId
     * @return
     */
    List<String> listRolesByUserInfoId(@Param("userId") Integer userId);
}
